import request from "@/utils/request";




export function add(data) {
  return request({
    url: "/sinohis/pension/sys/dictionary/main",
    method: 'post',
    data

  });

}
export function childadd(data) {
  return request({
    url: "/sinohis/pension/sys/dictionary/child/"+data.mark,
    method: 'post',
    data

  });

}
export function search(params) {
  return request({
    url: "/sinohis/pension/sys/dictionary/findAllDictionary",
    method: 'get',
    params

  });

}
export function childsearch(params) {
  return request({
    url: "/sinohis/pension/sys/dictionary/findAllDictionaryChild",
    method: 'get',
    params

  });

}

export function disableDictionary(data) {
  return request({
    url: "/sinohis/pension/sys/dictionary/modifyDictionaryChild",
    method: 'put',
    data

  });

}
